import 'dart:io';

///
/// 视频数据源及视频模型
///
Socket? socket;
var videoList = [
  'test-video-10.MP4',
  'test-video-6.mp4',
  'test-video-9.MP4',
  'test-video-8.MP4',
  'test-video-7.MP4',
  'test-video-1.mp4',
  'test-video-2.mp4',
  'test-video-3.mp4',
  'test-video-4.mp4',
];

class UserVideo {
  final String url;
  final String image;
  final String? desc;

  UserVideo({required this.url, required this.image, this.desc});

  static List<UserVideo> fetchVideo() {
    List<UserVideo> list = videoList
        .map((e) => UserVideo(
            url: 'https://static.ybhospital.net/$e',
            image: "",
            desc: "test_video_desc"))
        .toList();
    return list;
  }

  @override
  String toString() {
    return "image:$image \nvideo:$url";
  }
}
